﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;
using UniMana.Utils.Configs;
using System.Windows.Forms;
using UniMana.Data;

namespace UniMana.Win.Training
{
    public partial class RptDebtList : DevExpress.XtraReports.UI.XtraReport
    {
        public RptDebtList(DataTable tblSource)
        {
            InitializeComponent();
            this.DataSource = tblSource;
            LoadReport();
        }

        public void LoadReport()
        {
            xrtID.DataBindings.Add("Text", null, "ID");
            xrtLastName.DataBindings.Add("Text", null, "LastName");
            xrtName.DataBindings.Add("Text", null, "SureName");
            xrtDebt.DataBindings.Add("Text", null, "Debt");

            xrlDay.Text = "Tân An," + "ngày" + " " + DateTime.Now.Day + " " + "tháng" + " " + DateTime.Now.Month + " " + "năm" + " " + DateTime.Now.Year;
        }

    }
}
